package com.hczoop.utils.designPattern.command;

/**
 * 某个命令
 * 让那个士兵去执行
 */
public class MyCommand implements Command {  
  
    private Receiver receiver;  
      
    public MyCommand(Receiver receiver) {  
        this.receiver = receiver;  
    }  
  
    public void exe() {  
        receiver.action();  
    }  
}  
